# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=conpass
pkgver=0.1.1
pkgrel=4
pkgdesc='Password spraying in AD environment avoing account locking.'
arch=('any')
groups=('blackarch' 'blackarch-windows' 'blackarch-cracker')
url='https://github.com/login-securite/conpass'
license=('MIT')
depends=('python' 'python-ldap' 'impacket-ba' 'python-rich')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz")
sha512sums=('9b0215f1b1a2e47e61640f9867e248ddd4bd7a9910e97fef2350a89ed871996ed0a5ed4c749d477278608b6a16065b4b044159906eb39af7892fe9ceedb3358e')

build() {
  cd "$pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

